package net.htjs.juc.thread;

import lombok.extern.slf4j.Slf4j;

@Slf4j
public class ThreadState {

    public static void main(String[] args) {
        Thread thread = new Thread(() ->{
            log.info("running");
        }, "Thread-1");
        log.info("运行前线程状态:{}", thread.getState());
        thread.start();
        log.info("运行后线程状态:{}", thread.getState());
    }


}
